#ifndef FILEWATCHERTHREAD_H
#define FILEWATCHERTHREAD_H

#include <QThread>

class FileWatcherThread : public QThread
{
    Q_OBJECT
public:
    FileWatcherThread(const QString &dir, QObject *parent = 0);

    void run() Q_DECL_OVERRIDE { scanDir(); exec(); }

signals:
    void filesChanged(const QStringList &removed, const QStringList &added);

private slots:
    void scanDir();

private:
    QString m_dir;
    QStringList m_files;
};

#endif // FILEWATCHERTHREAD_H
